﻿using System.ComponentModel.DataAnnotations.Schema;

namespace HDW_Migrate.Db.Entities;

/// <summary>
/// 员工
/// </summary>
public class Staff : BaseEntity
{
    /// <summary>
    /// 名称
    /// </summary>
    [NotMapped]
    public string Name { get => LastName + FirstName; }
    /// <summary>
    /// 编码
    /// </summary>
    public string Code { get; set; }
    /// <summary>
    /// 用户名
    /// </summary>
    public string UserName { get; set; }
    /// <summary>
    /// 姓
    /// </summary>
    public string FirstName { get; set; }
    /// <summary>
    /// 名
    /// </summary>
    public string LastName { get; set; }
    /// <summary>
    /// 中间名
    /// </summary>
    public string MiddleName { get; set; }
    /// <summary>
    /// 性别
    /// </summary>
    public string Gender { get; set; }
    /// <summary>
    /// 助记码
    /// </summary>
    public string MnemonicCode { get; set; }
    /// <summary>
    /// 审核医师执业证书编号
    /// </summary>
    public string ApproveCertificateNo { get; set; }
    /// <summary>
    /// 登记医师执业证书编号
    /// </summary>
    public string RegistCertificateNo { get; set; }
    /// <summary>
    /// 最后修改时间
    /// </summary>
    public DateTime LastUpdateDateTime { get; set; }
    /// <summary>
    /// 用户Id
    /// </summary>
    public string UserId { get; set; }
    /// <summary>
    /// 科室Id
    /// </summary>
    public Guid? DepartmentId { get; set; }
    /// <summary>
    /// 可管理检查室Id
    /// </summary>
    public string PeformDeviceIds { get; set; }
    /// <summary>
    /// 授权跨院写报告的医院
    /// </summary>
    public string AuthHospitalIds { get; set; }
    /// <summary>
    /// 图片签名
    /// </summary>
    public string ImageSignature { get; set; }
}